<html>
          lalala
<head>
         <link rel="stylesheet" href="/uServicePlayer/css/style.css" />
        <script src="/uServicePlayer/js/gadget-imports.js" type="text/javascript"></script>
        <script src="http://pruebasuservice.googlecode.com/svn/phonegap-1.2.0.js" type="text/javascript"></script>
        <script type="text/javascript" charset="utf-8">
       
   
         function mirarAgenda() {
            // find all contacts with 'Bob' in any name field
            var options = new ContactFindOptions();
            options.filter="Emergencias";
            var fields = ["displayName", "name"];
            navigator.contacts.find(fields, onSuccess, onError, options);
        }
   
        // onSuccess: Get a snapshot of the current contacts
        //
        function onSuccess(contacts) {
            alert('entro en onSuccess');
            for (var i=0; i<contacts.length; i++) {
                alert('Display Name = ' + contacts[i].displayName);
            }
        }
   
        // onError: Failed to get the contacts
        //
        function onError(contactError) {
            alert('onError!');
        }
        </script>
      </head>
      <body>
        <h1>Ejemplo</h1>
        <p>Recortado</p>
        <a href="#" onclick="mirarAgenda()">lanza</a>
        
      </body>
</html>
